package com.siwei.mes.mapper.experiment;

import com.siwei.mes.common.base.BaseMapper;
import com.siwei.mes.entity.experiment.ExperimentImage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 试验台账图片(ExperimentImage)表数据库访问层
 *
 * @author linzi
 * @since 2024-01-01 16:37:34
 */
public interface ExperimentImageMapper extends BaseMapper<ExperimentImage> {
    /**
     * 获取所有
     *
     * @param entity
     * @return
     */
    List<ExperimentImage> getList(ExperimentImage entity);

    /**
     * 根据id获取
     *
     * @param id
     * @return
     */
    ExperimentImage loadById(@Param("id") Long id);

    /**
     * 根据抽样记录id删除图片
     *
     * @param smokeId
     */
    void deleteBySmokeId(@Param("smokeId") Long smokeId);
}
